package com.workManager.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbEstimateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbEstimateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesIsNull() {
            addCriterion("direct_expenses is null");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesIsNotNull() {
            addCriterion("direct_expenses is not null");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesEqualTo(BigDecimal value) {
            addCriterion("direct_expenses =", value, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesNotEqualTo(BigDecimal value) {
            addCriterion("direct_expenses <>", value, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesGreaterThan(BigDecimal value) {
            addCriterion("direct_expenses >", value, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("direct_expenses >=", value, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesLessThan(BigDecimal value) {
            addCriterion("direct_expenses <", value, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("direct_expenses <=", value, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesIn(List<BigDecimal> values) {
            addCriterion("direct_expenses in", values, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesNotIn(List<BigDecimal> values) {
            addCriterion("direct_expenses not in", values, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("direct_expenses between", value1, value2, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andDirectExpensesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("direct_expenses not between", value1, value2, "directExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesIsNull() {
            addCriterion("sales_expenses is null");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesIsNotNull() {
            addCriterion("sales_expenses is not null");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesEqualTo(BigDecimal value) {
            addCriterion("sales_expenses =", value, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesNotEqualTo(BigDecimal value) {
            addCriterion("sales_expenses <>", value, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesGreaterThan(BigDecimal value) {
            addCriterion("sales_expenses >", value, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("sales_expenses >=", value, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesLessThan(BigDecimal value) {
            addCriterion("sales_expenses <", value, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("sales_expenses <=", value, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesIn(List<BigDecimal> values) {
            addCriterion("sales_expenses in", values, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesNotIn(List<BigDecimal> values) {
            addCriterion("sales_expenses not in", values, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("sales_expenses between", value1, value2, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andSalesExpensesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("sales_expenses not between", value1, value2, "salesExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesIsNull() {
            addCriterion("implement_expenses is null");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesIsNotNull() {
            addCriterion("implement_expenses is not null");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesEqualTo(BigDecimal value) {
            addCriterion("implement_expenses =", value, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesNotEqualTo(BigDecimal value) {
            addCriterion("implement_expenses <>", value, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesGreaterThan(BigDecimal value) {
            addCriterion("implement_expenses >", value, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("implement_expenses >=", value, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesLessThan(BigDecimal value) {
            addCriterion("implement_expenses <", value, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("implement_expenses <=", value, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesIn(List<BigDecimal> values) {
            addCriterion("implement_expenses in", values, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesNotIn(List<BigDecimal> values) {
            addCriterion("implement_expenses not in", values, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("implement_expenses between", value1, value2, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andImplementExpensesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("implement_expenses not between", value1, value2, "implementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesIsNull() {
            addCriterion("procurement_expenses is null");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesIsNotNull() {
            addCriterion("procurement_expenses is not null");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesEqualTo(BigDecimal value) {
            addCriterion("procurement_expenses =", value, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesNotEqualTo(BigDecimal value) {
            addCriterion("procurement_expenses <>", value, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesGreaterThan(BigDecimal value) {
            addCriterion("procurement_expenses >", value, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("procurement_expenses >=", value, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesLessThan(BigDecimal value) {
            addCriterion("procurement_expenses <", value, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("procurement_expenses <=", value, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesIn(List<BigDecimal> values) {
            addCriterion("procurement_expenses in", values, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesNotIn(List<BigDecimal> values) {
            addCriterion("procurement_expenses not in", values, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("procurement_expenses between", value1, value2, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andProcurementExpensesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("procurement_expenses not between", value1, value2, "procurementExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesIsNull() {
            addCriterion("manage_expenses is null");
            return (Criteria) this;
        }

        public Criteria andManageExpensesIsNotNull() {
            addCriterion("manage_expenses is not null");
            return (Criteria) this;
        }

        public Criteria andManageExpensesEqualTo(BigDecimal value) {
            addCriterion("manage_expenses =", value, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesNotEqualTo(BigDecimal value) {
            addCriterion("manage_expenses <>", value, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesGreaterThan(BigDecimal value) {
            addCriterion("manage_expenses >", value, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("manage_expenses >=", value, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesLessThan(BigDecimal value) {
            addCriterion("manage_expenses <", value, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("manage_expenses <=", value, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesIn(List<BigDecimal> values) {
            addCriterion("manage_expenses in", values, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesNotIn(List<BigDecimal> values) {
            addCriterion("manage_expenses not in", values, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("manage_expenses between", value1, value2, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andManageExpensesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("manage_expenses not between", value1, value2, "manageExpenses");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("DESCRIPTION is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("DESCRIPTION is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("DESCRIPTION =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("DESCRIPTION <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("DESCRIPTION >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("DESCRIPTION <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("DESCRIPTION like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("DESCRIPTION not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("DESCRIPTION in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("DESCRIPTION not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("DESCRIPTION between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("DESCRIPTION not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_DATE <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_DATE not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_DATE not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}